package com.java8.time.api;

import java.time.LocalDate;

/**
 * <p>Description: [如何在Java 8中检查闰年]</p>
 * Created on 2020/2/21
 *
 * @author <a href="mailto: 819712047@qq.com">谢振东 </a>
 * @version 1.0
 */
public class Demo14 {


    public static void master() {
        System.out.println("-----------------Demo14.master()-----------------");
        LocalDate today = LocalDate.now();
        if (today.isLeapYear()) {
            System.out.println("This year is Leap year");
        } else {
            System.out.println("2018 is not a Leap year");
        }

    }
}
